import React from 'react';
import { Carousel } from 'antd';

const contentStyle: React.CSSProperties = {
  margin: 0,
  height: '250px',
  color: '#fff',
  lineHeight: '160px',
  textAlign: 'center',
  background: '#364d79',
  borderRadius:"10px",
};

const App: React.FC = () => {
  const onChange = (currentSlide: number) => {
    console.log(currentSlide);
  };

  return (
    <Carousel afterChange={onChange} autoplay>
      <div>
        <img style={contentStyle} src="src/img/tong.png" alt="" />
      </div>
      <div>
        <img style={contentStyle} src="src/img/gao.png" alt="" />
      </div>
      <div>
        <img style={contentStyle} src="src/img/hua.png" alt="" />
      </div>
      <div>
        <img style={contentStyle} src="src/img/kou.png" alt="" />
      </div>
        <div>
        <img style={contentStyle} src="src/img/re.png" alt="" />
      </div>
    </Carousel>
  );
};

export default App;